package com.daisuxia.web.util;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;


public class JmsListener implements ServletContextListener {

	@Override
	public void contextDestroyed(ServletContextEvent arg0) {
		
	}

	@Override
	public void contextInitialized(ServletContextEvent arg0) {
		JmsConsumer.threadPool.execute(new Runnable(){
			@Override
			public void run() {
				try {
					//tongBuService.tongbu(String.valueOf(map.get("")), String.valueOf(map.get("")));
					JmsConsumer.getmessage();
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

}
